package Java0311;

import java.util.Scanner;

public class Array16 {
    public static void main(String[] args) {
        //16：定义整数的 二维数组。求二维数组中的最大值
        Scanner scans = new Scanner(System.in);
        int[][] array = new int[][]{{34, 99, -1, 4, 3}, {55, 103, -8, 8, 211}, {98, 33, 211, 87, 32}};
        int max = array[0][0];
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                if (max < array[i][j]) {
                    max = array[i][j];
                }
            }
        }
        System.out.println("最大值：" + max);

    }
}
